package edu.stthomas.edu.seis770.simpleclock;

public abstract class ClockState {

    final ClockModel clockModel;


    // Constructor to be used by children. note an abstract class cannot be initiated
    ClockState(ClockModel clockModel) {
        this.clockModel = clockModel;
    }

    public void timerTick() {
        clockModel.setSeconds(clockModel.getSeconds() + 1);
    }

    public abstract void changeMode();

    public abstract void increment();

    public abstract void decrement();

    public abstract void cancel();
}
